package cn.ht.jywrwater.module.ht.controller.admin.meterdata.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.ht.jywrwater.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 水表数据 Excel 导出 Request VO，参数和 MeterDataPageReqVO 是一致的")
@Data
public class MeterDataExportReqVO {

    @Schema(description = "水表编号")
    private String meterCode;

    @Schema(description = "上报时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] reportTime;

    @Schema(description = "0:关闭 1:开启 2:故障 3:其他口", example = "2")
    private Integer valveStatus;

}
